import request from '@/config/axios'

/**开户申请*/
export const createTenantApprove = async (data) => {
  return await request.post({ url: `/system/tenant-approve-list/create`, data })
}
/**开户提交记录*/
export const approvePage = async (params) => {
  return await request.get({ url: `/system/tenant-approve-list/page`, params })
}

/**获取我代理的客户列表*/
export const subCustomerPage = async (params) => {
  return await request.get({ url: `/system/tenant/sub-customer-page`, params })
}

/**代理商首页统计接口*/
export const getProxyMain = async (params) => {
  return await request.get({ url: `/system/tenant/get-proxy-main-page-data` })
}
/**客户列表simplist*/
export const getProxyCustomer = async (params) => {
  return await request.get({ url: `/system/tenant/get-proxy-customer-list` })
}
/**客户支付记录*/
export const proxyByPage = async (params) => {
  return await request.get({ url: `/system/tenant-recharge-log/page-by-proxy`, params })
}

/**充值记录申请*/
export const createRechargeList = async (data) => {
  return await request.post({ url: `/system/tenant-recharge-list/create`, data })
}
/**获取充值记录列表*/
export const rechargePage = async (params) => {
  return await request.get({ url: `/system/tenant-recharge-list/page`, params })
}

/**客户话费使用记录list*/
export const listByList = async (params) => {
  return await request.get({ url: `/call/stat/list-by-proxy`, params })
}
/**客户话费使用记录导出*/
export const exportExcelByProxy = async (params) => {
  return await request.download({ url: `/call/stat/export-excel-by-proxy`, params })
}
/**客户话费使用记录单个导出*/
export const OwnerexportExcelByProxy = async (params) => {
  return await request.download({ url: `/call/stat/owner-export-excel-by-proxy`, params })
}
/**查看客户话费使用记录单个*/
export const ownerProxy = async (params) => {
  return await request.get({ url: `/call/stat/owner-by-proxy`, params })
}
